﻿using UnityEngine;

[System.Serializable]
public class Grid
{
    // 世界位置
    public Vector2 position;

    // 序列, 如 (0,1) (2,1)
    public Vector2 sequence;

    // 是否有植物
    public bool HasPlant = false;

    private PlantBase plantBase;

    public PlantBase PlantBase { get => plantBase; 
        set
        {
            plantBase = value;
            if (plantBase != null)
            {
                HasPlant = true;
            }else
            {
                HasPlant = false;
            }
        }
    }
}

